package com.ruoyi.ebike.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * coupon对象 coupon
 * 
 * @author ruoyi
 * @date 2025-01-03
 */
public class Coupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 优惠金额/直接抵扣 */
    @Excel(name = "优惠金额/直接抵扣")
    private BigDecimal discount;

    /** 备注 */
    @Excel(name = "备注")
    private String addition;

    /** 最低消费（可以使用优惠券） */
    @Excel(name = "最低消费", readConverterExp = "可=以使用优惠券")
    private BigDecimal minAmount;

    /** 使用期限（天） */
    @Excel(name = "使用期限", readConverterExp = "天=")
    private Integer cardTime;

    /** 购买该优惠券的金额 */
    @Excel(name = "购买该优惠券的金额")
    private BigDecimal money;

    /** 优惠券张数 */
    @Excel(name = "优惠券张数")
    private Integer count;

    /** 区域权限 */
    @Excel(name = "区域权限")
    private Long deptId;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createPerson;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatePerson;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDiscount(BigDecimal discount) 
    {
        this.discount = discount;
    }

    public BigDecimal getDiscount() 
    {
        return discount;
    }
    public void setAddition(String addition) 
    {
        this.addition = addition;
    }

    public String getAddition() 
    {
        return addition;
    }
    public void setMinAmount(BigDecimal minAmount) 
    {
        this.minAmount = minAmount;
    }

    public BigDecimal getMinAmount() 
    {
        return minAmount;
    }
    public void setCardTime(Integer cardTime)
    {
        this.cardTime = cardTime;
    }

    public Integer getCardTime()
    {
        return cardTime;
    }
    public void setMoney(BigDecimal money) 
    {
        this.money = money;
    }

    public BigDecimal getMoney() 
    {
        return money;
    }
    public void setCount(Integer count)
    {
        this.count = count;
    }

    public Integer getCount()
    {
        return count;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setCreatePerson(String createPerson) 
    {
        this.createPerson = createPerson;
    }

    public String getCreatePerson() 
    {
        return createPerson;
    }
    public void setUpdatePerson(String updatePerson) 
    {
        this.updatePerson = updatePerson;
    }

    public String getUpdatePerson() 
    {
        return updatePerson;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("discount", getDiscount())
            .append("addition", getAddition())
            .append("minAmount", getMinAmount())
            .append("cardTime", getCardTime())
            .append("money", getMoney())
            .append("count", getCount())
            .append("deptId", getDeptId())
            .append("createTime", getCreateTime())
            .append("createPerson", getCreatePerson())
            .append("updateTime", getUpdateTime())
            .append("updatePerson", getUpdatePerson())
            .toString();
    }
}
